home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Add-Ons / CodeWarrior / DASM 2.0 / DASM Src.sit / SRC / GLOBALS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-16  |  1.3 KB  |  48 lines

  1. // Data Assembler Globals
  2. //
  3. // This file is used both to declare the globals external for use by the program
  4. // as well as creating the data required to link the global info.
  5.  
  6. #ifndef EXTERN
  7.     #define EXTERN extern
  8. #endif
  9.  
  10. EXTERN DASMPref gPrefs;
  11.  
  12. EXTERN char gOutfile[256];
  13.  
  14. EXTERN FSSpec *gOrigSpec, *gSpec;
  15.  
  16. EXTERN Ptr err_srcStart, err_lineStart, err_errStart;
  17.  
  18. EXTERN Handle gOutHandle;
  19.  
  20. EXTERN int gState, gLine, gTotalLines, gGroup, gTotalErrs, gTotalWarns;
  21.  
  22. EXTERN Boolean gFirstPass, gNewLocalGroup, gInMacro;
  23.  
  24. EXTERN HashTableHandle gPseudoTblHdl, gSymTblHdl, gMacroTblHdl, gErrorTblHdl;
  25.  
  26. EXTERN ULONG gPC, gOutIndex;
  27.  
  28. EXTERN char gLabel[VARSIZE+1];
  29. EXTERN ULONG gLabelValue;
  30.  
  31. EXTERN char *gMacroLinePtr;
  32.  
  33. EXTERN Ptr     gBufferEnd, gpErrWord;
  34.  
  35. // Maclib required function, empty!
  36.  
  37. void ShutdownSound(void);
  38.  
  39. // These functions are required to be in the "main" app, and are
  40. // not part of the "generic" data assembler code! (ie, SKU specific!)
  41.  
  42. OSErr SendErrorMessage( CompilerErrorRefPtr errdata, char *errstr, char *errline );
  43. void SendOSErrorMessage( char *errstr, OSErr err );
  44. OSErr DisplayLines( long lines );
  45. OSErr DisplaySecondPass( void );
  46. OSErr FindAndLoadFile( char* file, Boolean fullSearch, FSSpec *spec, Handle *h, Size *s );
  47. OSErr AssembleFile( FSSpec* spec, Handle *hand, Size *size );
  48.